<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="01-a.js"></script>
    <script src="01-b.js"></script>
</head>

<body>
    <script>
        // 使用模块化后不再受全局变量的干扰
        console.log(js_a.a);
        console.log(js_b.a);
    </script>
</body>

</html>